# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-kill
_pkgname=kill
pkgver=2020.12.3
pkgrel=6
pkgdesc='A /bin/kill python wrapper.'
arch=('any')
url='https://pypi.org/project/kill/'
license=('custom:UNLICENSE')
depends=('python' 'python-values')
makedepends=('python-setuptools')
#source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/$_pkgname-$pkgver.tar.gz")
source=("https://web.archive.org/web/20210306024959/https://files.pythonhosted.org/packages/36/06/828b4997e0d7df8e80e35f903445ae4535a97ed2bf8f05e78b225148d689/$_pkgname-$pkgver.tar.gz")
sha512sums=('7687e87c14edfb387782b1f279f926b4e7404e5b0193316965fd9f2c4d9ec19522136482794f7dddd227ad9f4cb384e5e0379293b63d6895e7a96ba703562893')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

